home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / QuickDraw GX / QuickDraw GX Info / QuickDraw GX Interfaces / Interfaces & Libraries / interfaces / storage library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-30  |  1.3 KB  |  47 lines  |  [TEXT/MPS ]

  1. /* graphics libraries:  
  2.     primitive flattening library routine interfaces
  3.     by Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink, Chris Yerga
  4.     Copyright 1987 - 1993 Apple Computer, Inc.  All rights reserved.    */
  5.  
  6. #pragma once
  7. #ifndef storageLibraryIncludes
  8.     #define storageLibraryIncludes
  9.     #ifndef __TYPES__
  10.         #include <Types.h>
  11.     #endif
  12.  
  13.     #ifndef graphicsStreamTypesIncludes
  14.         #include "graphics stream types.h"
  15.     #endif
  16.  
  17.      #ifdef __cplusplus
  18.     extern "C" {
  19.     #endif
  20.  
  21.      struct userSpool {
  22.         gxSpoolBlock    spool;
  23.         long            reference;
  24.         long            position;
  25.         long            size;
  26.         void            *data;
  27.         void            *userField;
  28.     };
  29.  
  30.     #ifndef __cplusplus
  31.         typedef struct userSpool userSpool;
  32.     #endif
  33.  
  34.     Handle ShapeToHandle(gxShape source);
  35.     gxShape HandleToShape(Handle target, long count, const gxViewPort portList[]);
  36.     void ShapeToFRef(gxShape source, short fileRef);
  37.     gxShape FRefToShape(short fileRef, long count, const gxViewPort portList[]);
  38.     void ShapeToFile(gxShape source, Str255 fileName, short vRefNum, OSType creator, OSType fileType);
  39.     gxShape FileToShape(Str255 fileName, short vRefNum, long count, const gxViewPort portList[]);
  40.     Handle FontToHandle(gxFont fontID, long glyphBits[]);
  41.     gxFont HandleToFont(Handle source);
  42.  
  43.     #ifdef __cplusplus
  44.     }
  45.     #endif
  46. #endif
  47.